[gd_scene load_steps=8 format=3 uid="uid://chbol8p021dbt"]

[ext_resource type="Script" path="res://scenes/level_editor/editor.gd" id="1_5g1sh"]
[ext_resource type="PackedScene" uid="uid://kxsoppflnua2" path="res://scenes/level/level.tscn" id="2_2c0mm"]
[ext_resource type="Script" path="res://scenes/level_editor/ui.gd" id="3_62dtf"]
[ext_resource type="PackedScene" uid="uid://c0qoj7iw2g6j3" path="res://scenes/level_editor/selection_ui.tscn" id="3_gux30"]
[ext_resource type="PackedScene" uid="uid://dfk0pnl01eotc" path="res://scenes/ui/markers/select_box.tscn" id="4_eejvn"]
[ext_resource type="PackedScene" uid="uid://b1tod34kr8cro" path="res://scenes/ui/level_picker/picker.tscn" id="4_jj7gr"]
[ext_resource type="PackedScene" uid="uid://vyavj58o3ufp" path="res://scenes/ui/pause_menu.tscn" id="6_36eoj"]

[node name="editor" type="Node3D" groups=["editor"]]
script = ExtResource("1_5g1sh")

[node name="SubViewportContainer" type="SubViewportContainer" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
stretch = true

[node name="SubViewport" type="SubViewport" parent="SubViewportContainer"]
handle_input_locally = false
size = Vector2i(1280, 800)
render_target_update_mode = 4

[node name="level" parent="SubViewportContainer/SubViewport" instance=ExtResource("2_2c0mm")]

[node name="ui" type="Control" parent="."]
process_mode = 3
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
script = ExtResource("3_62dtf")

[node name="level_name" type="MarginContainer" parent="ui"]
layout_mode = 0
offset_right = 40.0
offset_bottom = 40.0

[node name="label" type="Label" parent="ui/level_name"]
layout_mode = 2

[node name="selection_ui" parent="ui" instance=ExtResource("3_gux30")]
custom_minimum_size = Vector2(200, 0)
layout_mode = 1
anchors_preset = 11
anchor_left = 1.0
offset_left = -160.0
grow_horizontal = 0

[node name="picker" type="MarginContainer" parent="ui"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
grow_horizontal = 2
grow_vertical = 2

[node name="picker" parent="ui/picker" instance=ExtResource("4_jj7gr")]

[node name="pause_menu" type="MarginContainer" parent="ui"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
grow_horizontal = 2
grow_vertical = 2

[node name="pause_menu" parent="ui/pause_menu" instance=ExtResource("6_36eoj")]

[node name="tile_offset" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1)

[node name="select_box" parent="tile_offset" instance=ExtResource("4_eejvn")]

[connection signal="mouse_entered" from="SubViewportContainer" to="." method="_on_sub_viewport_container_mouse_entered"]
[connection signal="mouse_exited" from="SubViewportContainer" to="." method="_on_sub_viewport_container_mouse_exited"]
